package service

import (
	"context"

	"gitee.com/thewalkers/refactoring-code/model"
)

// SaleReceiptService struct for injecting an implementation of EmployeeRepository
// for use in service methods
type SaleReceiptTransactionService struct {
	SaleReceiptChargeRepository model.SaleReceiptChargeRepository
}

// SRConfig will hold repository that will eventually be injected into this
// service layer
type SRConfig struct {
	SaleReceiptChargeRepository model.SaleReceiptChargeRepository
}

// NewSaleReceiptService is a factory function for
// initializing a EmployeeService with its repository layer dependencies
func NewSaleReceiptService(s *SRConfig) model.SaleReceiptTransactionService {
	return &SaleReceiptTransactionService{
		SaleReceiptChargeRepository: s.SaleReceiptChargeRepository,
	}
}

func (s *SaleReceiptTransactionService) Create(ctx context.Context, id int64, sale *model.SaleReceipt) error {
	return nil
}
